package com.weitu.train.record.service;

import com.weitu.train.record.entity.Record;
import com.weitu.train.record.entity.RecordUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RecordService {

    Record selectById(String id);

    int deleteById(String id);

    int updateByIdSelective(Map<String, Object> record);

    int updateById(Record record);

    int insert(Record record);

    int insertSelective(Map<String, Object> record);

    boolean insertRecord(Map<String, Object> map);

    boolean updateRecord(Map<String, Object> map);

    List<Record> selectByPlanId(@Param("id") String id);



    int selectAllUserCountById(Map<String, Object> map);

    int deleteUserById(String id);

    List<RecordUser> selectAllUserListById(String recordId);
    List<RecordUser> selectAllUserById(Map<String, Object> map);

    List<Map<String,Object>> selectMyRecords(Map<String, Object> map);
    int selectMyRecordsCount(Map<String, Object> map);

    List<Record> selectAccount(Map<String, Object> map);
    int selectAccountCount(Map<String, Object> map);
}